

package com.hazelcast.internal.config;

import com.hazelcast.config.EventJournalConfig;

public class EventJournalConfigReadOnly extends EventJournalConfig {
    public EventJournalConfigReadOnly(EventJournalConfig config) {
        super(config);
    }

    @Override
    public EventJournalConfig setCapacity(int capacity) {
        throw new UnsupportedOperationException("This config is read-only");
    }

    @Override
    public EventJournalConfig setTimeToLiveSeconds(int timeToLiveSeconds) {
        throw new UnsupportedOperationException("This config is read-only");
    }

    @Override
    public EventJournalConfig setEnabled(boolean enabled) {
        throw new UnsupportedOperationException("This config is read-only");
    }
}
